#ifndef DRV_UART_H
#define DRV_UART_H


////////////////////////////////////////PUBLIC STRUCTURES/////////////////////////////////////////
typedef struct
{
	char time [ 15 ] ;
	char latitude [ 15 ];
	char longitude [ 15 ];
	char quality [ 15 ];
	char nb_satellites [ 15 ];
	char hdop [ 15 ];
	char altitude [ 15 ];
	char geoidal [ 15 ];
	char last_update [ 15 ];
	char station_id [ 15 ];
	char check_sum [ 15 ];
	
}S_Gpgga;
////////////////////////////////////////PUBLIC DEFINES/////////////////////////////////////////

typedef void (* drv_uartCallbackHandler) ( S_Gpgga *gpgga );
////////////////////////////////////////PUBLIC FUNCTIONS/////////////////////////////////////////

int drv_uartOpen ( char* tty, drv_uartCallbackHandler cb );
void drv_uartClose ( int fd_uart  );
int drv_uartWriteBytes( char * buffer );

#endif
